package com.shchekoldin.juliet.packager;

import com.shchekoldin.juliet.packager.core.Packager;
import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.Logger;
import org.apache.log4j.PatternLayout;

public class Application  {

    // -------------------------------------------------------
    // -                        LOGIC                        -
    // -------------------------------------------------------

    private static void configureLogger() {
        Logger logger = Logger.getRootLogger();
        ConsoleAppender appender = new ConsoleAppender(new PatternLayout("%d [%t] %p %c.%x%M: %m%n"));
        logger.addAppender(appender);
    }

    public static void main(String[] args) {
        configureLogger();
        Packager.getInstance().run(args);
    }

}
